function LoginCB(msg){
    if(msg.ret == true){
        var player = new Player();
        player.copyFromPlayerData( msg.playerData);
        app.getSession().attachPlayer(player);
        var townScene = new TownScene();
        var change = cc.TransitionTurnOffTiles.create(1,townScene);
        cc.Director.getInstance().replaceScene(change);
    }
};